<!--
 * @Author: lihaogn
 * @Date: 2021-12-17 10:27:58
 * @LastEditTime: 2022-05-15 18:07:14
 * @LastEditor: lihaogn
 * @Description: 
 * @FilePath: \lix-vue2-demos\src\views\demo\vue\prop\modules\AttrsSonTest.vue
-->
<template>
  <div>
    <h1 v-bind="$attrs" v-on="$listeners">attrs 传递测试</h1>
  </div>
</template>

<script>
export default {
  created() {
    console.log('created attrs-son', this.$attrs, 'listener', this.$listeners)
    /**
     * $listeners 的 click 中会有两个方法，一个父级绑定的，一个是父级的父级绑定的
     */
  },
  mounted() {
    console.log('mounted attrs-son', this.$attrs, 'listener', this.$listeners)
  }
}
</script>

<style lang="less" scoped></style>
